<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>美食列表</title>
  </head>
  
  <body>
    <table>
    <c:forEach var="foodList" items="${foodList}">
    <tr><td>
    	<a href="show_getFoodDetail.action?foodId=${foodList.foodId}" target="_blank">${foodList.name}</a>
    </td></tr>
    </c:forEach>
    <tr><td>
    	<a href="show_getDetailFoodList.action?foodType=${foodType}&currentPage=1">首页</a>
    	<a href="show_getDetailFoodList.action?foodType=${foodType}&currentPage=${page.prevPage}">上页</a>
    	<a href="show_getDetailFoodList.action?foodType=${foodType}&currentPage=${page.nextPage}">下页</a>
    	<a href="show_getDetailFoodList.action?foodType=${foodType}&currentPage=${page.pageCount}">尾页</a>
    	共${page.pageCount}页 当前第${page.currentPage}页
    	<form action="show_getDetailFoodList.action">
    		<input type="hidden" name="foodType" value="${foodType}" />
    		<input type="text" name="currentPage" size="3" /><input type="submit" value="go" />
    	</form>
    </td></tr>
    </table>
  </body>
</html>
